package com.sumer.psychology.sharing.infrastructure.persistence.hibernate;

import com.sumer.psychology.common.persistence.hibernate.AbstractHibernateRepository;
import com.sumer.psychology.sharing.domain.model.Recommendation;
import com.sumer.psychology.sharing.domain.model.RecommendationRepository;

/**
 * User: zhenguang.zhu
 * Date: 2014/9/12
 * Time: 13:57
 */
public class HibernateRecommendationRepository extends AbstractHibernateRepository implements RecommendationRepository {
    @Override
    public void add(Recommendation aRecommendation) {
        session().saveOrUpdate(aRecommendation);
    }
}
